Page({
  data: {
    expre: "历史记录",
    expres: []
  },
  onClickClearHistory: function(e){
    console.log("onClickClearHistory");
    try{
      wx.clearStorageSync();
      this.setData({
        expre: "",
        expres: []
      })
    }catch(e1){
      console.log(e1);
    }
  },
  onClickBack: function(e){
    console.log("onClickBack");
    wx.navigateBack();
  },
  onLoad: function(options){
    this.setData({
      expre: wx.getStorageSync("expre"),
      expres: wx.getStorageSync("expres") || []
    })
  }
})